package com.dc.dao.impl;

import com.dc.bean.utils.BaseDao;
import com.dc.dao.NoticeDao;

import java.util.List;
import java.util.Map;

public class NoticeDaoImpl implements NoticeDao {
           BaseDao baseDao = new BaseDao();
    @Override
    public List<Map<String, Object>> selectNotice(String sql) throws Exception {
        return baseDao.query(sql,null);
    }

    @Override
    public int delectNotice(String sql) throws Exception {
        return baseDao.update(sql);
    }

    @Override
    public int addNotice(String sql, Object[] param) throws Exception {
        return baseDao.update(sql, param);
    }
}
